package Action;
import UserService.*;
import domain.*;
public class Update {
	private TUser use;
	private TUserInfo user;
	private UserService UserService;
	public UserService getUserService() {
		return UserService;
	}
	public void setUserService(UserService userService) {
		UserService = userService;
	}
	
	public TUser getUse() {
		return use;
	}
	public void setUse(TUser use) {
		this.use = use;
	}
	public TUserInfo getUser() {
		return user;
	}
	public void setUser(TUserInfo user) {
		this.user = user;
	}
	public String UpdateAction(){
		TUser A;
		UserService=new UserServiceImpl();
		A=UserService.Update2(use,user);
		if(A!=null){
		return "success";
		}else{
		return "input";
		}}
	public String UpdateAction1(){
		TUser A;
		UserService=new UserServiceImpl();
		A=UserService.Update1(use,user);
		if(A!=null){
		return "success";
		}else{
		return "input";
		}
	}
}
